package spark.graphics.scenegraph;

import spark.graphics.Texture;

public class MaterialNode extends SceneGraphNode {
	private Texture texture;

	public MaterialNode(Texture texture) {
		this.texture = texture;
	}

	@Override
	public void prepare() {
		texture.bind();
	}

	public void clear() {
		getChildren().clear();
	}
}
